how to calculate value of sales from mark-up and cost of sales